$(document).ready(function () {
    $("#add").dialog({
        title:"新增分组",
        btnName:"新增",
        btnBind:function () {
            var groupName=$("[name=groupName]").val();
            var params="groupName="+groupName;
            $.post(ctx+"cys/group/add",params,function(msg) {
                toastr.success(msg);
                $("#add").dialog("close");
                $("[name=groupName]").val("");
                $("#group").bootstrapTable("refresh");

            },'text');
        }
    });
})

function openAdd(){
    $("#add").dialog("open");
}